<template>
  <div class="dx-detail-container">
    <!-- <div class="dx-header-container">
      <div>
        <i class="dx-layer" /><span>{{ detailData.zhName }}监测详情</span>
      </div>
      <div><i class="el-icon-close" @click="closeContainer" /></div>
    </div> -->
    <div v-if="false" class="dx-body-container">
      <component v-if="componentName" :is="componentName" />
    </div>
    <div
      v-else
      style="width: 100%; height: 200px; text-align: center; line-height: 200px"
    >
      暂无数据
    </div>
  </div>
</template>

<script>
import DataOptions from "./dataOptions";
export default {
  name: "DataDetail",
  data() {
    return {
      detailData: {},
      detailType: "",
      detailID: "",
      componentName: "",
    };
  },
  mounted() {
    this.detailType = this.$route.query.type || {};
    this.detailData = DataOptions.fieldlabel[this.detailType];
    this.componentName = this.detailData.components.detial;
  },
  methods: {
    closeContainer() {
      this.$router.go(-1);
    },
  },
};
</script>

<style lang="scss" scoped>
</style>
